package com.ftg.learn.day11;

import java.io.*;

/**
 * 缓冲流
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/8/18 下午3:19
 */
public class BufferStream {

    public static void main(String[] args) {
        try (
                BufferedReader bufferedReader = new BufferedReader(new FileReader("/home/kangjx/Desktop/aoe.txt"));
//                BufferedWriter bufferedWriter = bufferedReader()
        ) {

            while(bufferedReader.ready()){
                System.out.println(bufferedReader.readLine());
            }

        } catch (Exception  e) {
            throw new RuntimeException(e);
        }
    }

    //java - office

}
